"""mysite URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
from people.views import *
import people.my_views.myapi


urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^search/$', archive1),
    url(r'^login/$', user_login),
    url(r'^logout/$', user_logout),
    url(r'^show1/$', archivenews1),
    url(r'^information_show/$', people.my_views.myapi.api_msg2),
    url(r'^information_show/api_search', people.my_views.myapi.api_msg2),
    #api show information
#    url(r'^api_action/$', api_action),
    url(r'^information_action/$', people.my_views.myapi.api_action),
    url(r'^information_action/api_create[a-zA-z]*', people.my_views.myapi.api_create),
    url(r'^information_action/api_delete[a-zA-z]*', people.my_views.myapi.api_delete),
    url(r'^information_action/api_update[a-zA-z]*', people.my_views.myapi.api_update),
    url(r'^information_action/api_msg2_excel', people.my_views.myapi.api_msg2_excel),
    url(r'^information_action/api_search_json', people.my_views.myapi.api_search_json),
    url(r'^test/$', api_receive),
    url(r'^$', index),
    url(r'^myapi', people.my_views.myapi.api_url),
    
]
